﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Snowdreamist.Threading
{
    public class TaskResult
    {
        public TaskResult(object result, Exception error, bool isCancelled, TaskTime taskTime)
        {
            this.Result = result;
            this.Error = error;
            this.IsCancelled = isCancelled;
            this.Time = taskTime;
        }

        public object Result { get; private set; }

        public Exception Error { get; private set; }

        public bool IsCancelled { get; private set; }

        public TaskTime Time { get; private set; }
    }
}